<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<!--引入head的公共部分-->
<head th:replace="header::header-commo(分类)"></head>
<body>
<!--引入header的公共部分-->
<header th:replace="header::header-nav"></header>
<!--主区域-->
<div class="container" style="margin-top:25px;">
    <div class="row">
        <div class="col-md-12">
            <ol class="breadcrumb">
                <li><a href="#">首页</a></li>
                <li class="active" th:text="${itemCat.name}">精品手办</li>
            </ol>
        </div>
        <div class="col-md-12">
            <div class="row  text-center">
                <div th:each="item:${pageInfo.list}" class="col-md-4">
                    <a th:href="@{'/item/'+${item.id}}" href="#" class="thumbnail"> <img class="img-responsive" th:src="@{'/upload/'+${item.image}}"/></a>
                    <p th:text="${item.name}">提莫 手办</p>
                    <p style="font-size: 18px;"><strong th:text="'¥'+${item.shopPrice}">¥150.00</strong></p>
                </div>
            </div>
            <div class="row">
                <div class="col-md-4 col-md-offset-8">

                    <nav aria-label="Page navigation">
                        <ul class="pagination">
                            <li>
                                <a th:href="@{/item/cat/{cid}/{prePage}(cid=${itemCat.cid},prePage=${pageInfo.prePage==0?'1':pageInfo.prePage})}" aria-label="Previous">
                                    <span aria-hidden="true">&laquo;</span>
                                </a>
                            </li>
                            <li th:class="${num==pageInfo.pageNum?'active':''}" th:each="num:${pageInfo.navigatepageNums}">
                                <a th:text="${num}" th:href="@{/item/cat/{cid}/{num}(cid=${itemCat.cid}, num=${num})}" >1</a>
                            </li>
                            <li>
                                <a th:href="@{/item/cat/{cid}/{nextPage}(cid=${itemCat.cid},nextPage=${pageInfo.nextPage==0?pageInfo.pages:pageInfo.nextPage})}" aria-label="Next">
                                    <span aria-hidden="true">&raquo;</span>
                                </a>
                            </li>
                        </ul>
                    </nav>
                </div>
            </div>

        </div>

    </div>

</div>
<!--底部-->
<footer th:replace="footer::footer"></footer>
</body>
</html>